From bd688b725ee8674b879415258b26ef0339f54fbc Mon Sep 17 00:00:00 2001 From: Edward E Date: Wed, 23 Nov 2016 16:33:29 -0600 Subject: [PATCH] babl, babl-cache: enable cache write, fix cache path processing 1. babl.c/babl_exit(): Remove fixme to enable babl cache writing on windows. 2. babl-cache.c/mk_ancestry(): pass the modified path to mk_ancestry_iter(). --- babl/babl-cache.c | 2 +- babl/babl.c | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/babl/babl-cache.c b/babl/babl-cache.c index 005fda2..b215128 100644 --- a/babl/babl-cache.c +++ b/babl/babl-cache.c @@ -64,7 +64,7 @@ mk_ancestry (const char *path) if (*c == '\\') *c = '/'; #endif - return mk_ancestry_iter (path); + return mk_ancestry_iter (copy); } static const char *fish_cache_path (void) diff --git a/babl/babl.c b/babl/babl.c index 2b53d68..935a860 100644 --- a/babl/babl.c +++ b/babl/babl.c @@ -160,10 +160,7 @@ babl_exit (void) { if (!-- ref_count) { -#ifdef _WIN32 // XXX: fixme - make this work on windows -#else babl_store_db (); -#endif babl_extension_deinit (); babl_free (babl_extension_db ());; -- 2.30.2